<?php

$srcDir = opendir("src");
$stcList = array();

$i=0;
while($res = readdir($srcDir))
{
	if(preg_match("#(.+)\.stc#isU",$res))
	{
		$stcList[$i] = $res;
		$i++;
	}
}

echo '
<p><h2>List of template in src directory</h2></p>
<p>';

foreach($stcList as $id => $name)
{
	echo '<a href="stmkit.php?tomake='.$name.'">'.$name.'</a><br />';
}
echo $i.' Theme(s) currently available</p>';

?>